package com.pactera.asmp.maccode;

public class MacCodeMain {

    public static void main(String[] args) {
        String sysType = "2";
        if(args.length>1){
            sysType = args[1];
        }
        String code = getSysMachineCode(sysType);
        System.out.println("system machine code: "+code);
    }
    private static String getSysMachineCode(String sysType){
        if("1".equals(sysType)){
            SequenceService ss = new WindowsSequenceService();
            return ss.getSequence();
        }
        if("2".equals(sysType)){
            SequenceService ss = new LinuxSequenceService();
            return ss.getSequence();
        }
        if("3".equals(sysType)){
            SequenceService ss = new MacSequenceService();
            return ss.getSequence();
        }
        if("4".equals(sysType)){
            SequenceService ss = new SolarisSequenceService();
            return ss.getSequence();
        }
        if("".equals(sysType)){
            SequenceService ss = new LinuxSequenceService();
            return ss.getSequence();
        }
        return "";
    }
}
